import Vue from 'vue'
import Vuex from 'vuex'
// getters 属性
import getters from './getters'
// 框架自带模块
import app from './modules/system/app'
import settings from './modules/system/settings'
// 自定义模块
import inventory from './modules/inventory'
import product from './modules/product'
import role from './modules/role'
import myStore from './modules/store'
import storeManage from './modules/storeManage'
import supplier from './modules/supplier'
import supplierProduct  from './modules/supplierProduct'
import type from './modules/type'
import user from './modules/user'


Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    // 自定义的模块
    inventory,
    product,
    role,
    myStore,
    storeManage,
    supplier,
    supplierProduct ,
    type,
    user,
  },
  getters
})

export default store
